Iterating through XML document with XPath without printing duplicates

welcome to shbcf.ru